#include "manager.h"
Manager::Manager(void)
{
	strcpy(m_strName,"hehe");
	strcpy(m_strPwd,"xixi");
}
Manager::Manager(const char* strName,const char* strPwd)
{
	strcpy(m_strName,strName);
	strcpy(m_strPwd,strPwd);
}
void Manager::setId(int id)
{
	m_iId = id;	
}
int Manager::getId(void)
{
	return m_iId;
}
void Manager::setName(const char* name)
{
	strcpy(m_strName,name);
}
const char* Manager::getName(void)
{
	return m_strName;
}
void Manager::setPwd(const char* pwd)
{
	strcpy(m_strPwd,pwd);
}
const char* Manager::getPwd(void)
{
	return m_strPwd;
}
ostream& operator<<(ostream& os,const Manager& mgr)
{

	return os << mgr.m_iId << " " << mgr.m_strName << " " << mgr.m_strPwd << endl;
}
istream& operator>>(istream& is,Manager& mgr)
{
	return is >> mgr.m_iId >> mgr.m_strName >> mgr.m_strPwd;
}
